// 检测更新 
var checkUrl = "http://120.27.217.171:8080/lgApp/LoginServlet?commdCode=getWellVersion";
// 下载wgt文件
var wgtUrl = "http://120.27.217.171:8080/apk/waterUpdate.wgt";

//后台服务地址
//var path = "http://192.168.5.116:8080/lgApp";
//var path = "http://192.168.5.143:8081/lgApp";
//var path = "http://192.168.5.101:8080/lgApp";

var path = "http://120.27.217.171:8080/lgApp";


var servleturl = [{
		//登录验证、发送验证码、获取版本号
		name: "LoginServlet",
		url: '/LoginServlet'
	},
	{
		name: "LandServlet",
		url: '/LandServlet'
	},
		{
		name: "UploadServlet",
		url: '/UploadServlet'
	},
	{
		name: "PatrolServlet",
		url: '/PatrolServlet'
	},
	{
		name: "OpcServlet",
		url: '/OpcServlet'
	}
];

function getServletUrl(servletname) {
	var servletpath = "";
	for(var i = 0; i < servleturl.length; i++) {
		if(servleturl[i].name == servletname) {
			servletpath = servleturl[i].url;
			break;
		}
	}
	var url = path + servletpath;
	return url;
}